<?php
declare(strict_types=1);

namespace App\Common\Modular\System\Model;

use Zms\HyperfCasts\JsonCasts;
use Zms\HyperfCasts\StrtotimeCasts;
use Core\Basics\BasicsModel;
/**
 * @property int $id
 * @property string $sign SEO标识
 * @property int $batch 导入批次
 * @property string $app 所属应用
 * @property string $name 规则名称
 * @property int $dynamic 页面类型
 * @property int $status 规则开关
 * @property string $param SEO参数
 * @property string $title title规则
 * @property string $keywords 关键词规则
 * @property string $description 描述关键词
 * @property int $created_at 创建时间
 * @property int $updated_at 编辑时间
 */
class SeoModel extends BasicsModel
{
    /**
     * The table associated with the model.
     */
    protected ?string $table = 'system_seo';

    /**
     * The attributes that are mass assignable.
     */
    protected array $fillable = [];

    /**
     * The attributes that should be cast to native types.
     */
    protected array $casts = [
        'id' => 'int',
        'batch' => 'int',
        'dynamic' => 'integer',
        'status' => 'integer',
        'param' => JsonCasts::class,
        'created_at' => StrtotimeCasts::class,
        'updated_at' => StrtotimeCasts::class
    ];
}
